package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the techticket database table.
 * 
 */
/**
 * @author Pop Loredana
 * @author Radulescu Cristina
 *
 */
@Entity
@NamedQuery(name="Techticket.findAll", query="SELECT t FROM Techticket t")
public class Techticket extends Ticket implements Serializable {
	private static final long serialVersionUID = 1L;


	@Column(nullable = false)
	private String problemtype;

	//bi-directional many-to-one association to Techresource
	@ManyToOne
	@JoinColumn(name="idResource")
	private Techresource techresource;

	//bi-directional one-to-one association to Ticket
	@OneToOne
	@JoinColumn(name="ID")
	private Ticket ticket;

	/**
	 * 
	 */
	public Techticket() {
	}

	/**
	 * @return
	 */
	public String getProblemtype() {
		return this.problemtype;
	}

	/**
	 * @param problemtype
	 */
	public void setProblemtype(String problemtype) {
		this.problemtype = problemtype;
	}

	/**
	 * @return
	 */
	public Techresource getTechresource() {
		return this.techresource;
	}

	/**
	 * @param techresource
	 */
	public void setTechresource(Techresource techresource) {
		this.techresource = techresource;
	}

	/**
	 * @return
	 */
	public Ticket getTicket() {
		return this.ticket;
	}

	/**
	 * @param ticket
	 */
	public void setTicket(Ticket ticket) {
		this.ticket = ticket;
	}

}